package net.niufei.study.cpatterns.activeobject;

public class Servant implements ActiveObject {

	@Override
	public Result makeString(int count, char fillChar) {
		StringBuffer sb = new StringBuffer();
		for(int i = 0; i < count; i++) {
			sb.append(fillChar);
		}
		return new RealResult(sb.toString());
	}

	@Override
	public void displayString(String string) {
		System.out.println(string);
	}

}
